package com.geyb.domain;

public class Result implements Comparable<Result> {
	private int qihao = 0;
	private int value = 0;

	public Result() {
	}

	public Result(int qihao, int value) {
		super();
		this.qihao = qihao;
		this.value = value;
	}

	@Override
	public int compareTo(Result r) {
		return r.getQihao() > this.qihao ? 1 : r.getQihao() == this.qihao ? 0 : -1;
	}

	public int getQihao() {
		return qihao;
	}

	public void setQihao(int qihao) {
		this.qihao = qihao;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Result [qihao=" + qihao + ", value=" + value + "]";
	}

}
